package com.pzhu.entity;



import lombok.Data;



@Data
public class Result<T> {
    private  Integer code;
    private String message;
    private T data;

    public Result(Integer code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public Result(Integer error, String message) {
        this.code=error;
        this.message=message;
    }

    public Result(Integer error) {
        this.code=error;
    }


}
